%%%-------------------------------------------------------------------
%%% @author Rain
%%% @doc 网页中间件
%%% @end
%%%-------------------------------------------------------------------
-module(web_middleware).
-author("Rain").

-behavior(cowboy_middleware).

%% API
-export([execute/2]).

execute(Req, Env) ->
    % 设置跨域
    Req1 = game_util_web:set_cors_header(Req),
    {ok, Req1, Env}.
